using System.Text.RegularExpressions;

namespace CSharpPro1._1106;

public class User
{
    
    private string _username;
    private string _password;

    // 属性（公开访问）
    public string Username 
    { 
        get => _username; 
        set => _username = value; 
    }

    public string Password 
    { 
        get => _password; 
        set => _password = value; 
    }

    // 构造函数
    public User(string username, string password)
    {
        _username = username;
        _password = password;
    }
}